package com.settlement.system.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.settlement.system.common.base.IBaseEnum;
import lombok.Getter;

/**
 * 平台类型（对应数据字典中platform的字典项）
 *
 */

public enum PlatFormEnum implements IBaseEnum<String> {

    DY("DY", "抖音"),
    TB("TB", "淘宝"),
    T_MALL("TMall", "天猫"),
    TMALL_CONFIG("TMallbill", "天猫配置"),
    PDD_CONFIG("pddbill", "拼多多配置"),
    SPH_CONFIG("sphbill", "视频号配置"),
    XHS_CONFIG("redBookbill", "小红书配置"),
    WD_CONFIG("wdbill", "微店配置"),
    YZ_CONFIG("yzbill", "有赞配置"),
    WM_CONFIG("wmbill", "微盟配置"),
    JD_CONFIG("jdbill", "京东配置"),
    DY_CONFIG("dybill", "抖音配置"),
    TM_ORDER("TM_ORDER", "天猫订单"),
    JD("JD", "京东"),
    PDD("pdd", "拼多多"),
    YZ("yz", "有赞");

    @Getter
    @EnumValue //  Mybatis-Plus 提供注解表示插入数据库时插入该值
    private String value;

    @Getter
    // @JsonValue //  表示对枚举序列化时返回此字段
    private String label;

    PlatFormEnum(String value, String label) {
        this.value = value;
        this.label = label;
    }

}
